﻿@using BestTrader.Cms.ViewModels
@{
    ViewData["Title"] = "管理中心";
    var AgentManagers = ViewData["AgentManagers"] as List<ItemsDetailModel>;
}

<blockquote class="layui-elem-quote layui-bg-green">
    <div id="nowTime"></div>
</blockquote>
<div class="layui-row layui-col-space10 panel_box">
    @*<div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://www.cnblogs.com/yilezhu/p/9977862.html" target="_blank">
                <div class="panel_icon layui-bg-green">
                    <i class="layui-anim seraph icon-good"></i>
                </div>
                <div class="panel_word">
                    <span>为我点赞</span>
                    <cite>点赞地址链接</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://github.com/yilezhu/Czar.Cms" target="_blank">
                <div class="panel_icon layui-bg-black">
                    <i class="layui-anim seraph icon-github"></i>
                </div>
                <div class="panel_word">
                    <span>Github</span>
                    <cite>源码下载链接</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://gitee.com/yilezhu/Czar.Cms" target="_blank">
                <div class="panel_icon layui-bg-red">
                    <i class="layui-anim seraph icon-oschina"></i>
                </div>
                <div class="panel_word">
                    <span>码云</span>
                    <cite>模版下载链接</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;">
                <div class="panel_icon layui-bg-orange">
                    <i class="layui-anim seraph icon-icon10" data-icon="icon-icon10"></i>
                </div>
                <div class="panel_word userAll">
                    <span>100</span>
                    <em>用户总数</em>
                    <cite class="layui-hide">用户中心</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;" data-url="https://www.cnblogs.com/yilezhu/" target="_blank">
                <div class="panel_icon layui-bg-cyan">
                    <i class="layui-anim layui-icon" data-icon="&#xe857;">&#xe857;</i>
                </div>
                <div class="panel_word outIcons">
                    <span></span>
                    <em>博客链接</em>
                    <cite class="layui-hide">博客地址</cite>
                </div>
            </a>
        </div>
        <div class="panel layui-col-xs12 layui-col-sm6 layui-col-md4 layui-col-lg2">
            <a href="javascript:;">
                <div class="panel_icon layui-bg-blue">
                    <i class="layui-anim seraph icon-clock"></i>
                </div>
                <div class="panel_word">
                    <span class="loginTime"></span>
                    <cite>上次登录时间</cite>
                </div>
            </a>
        </div>*@
</div>
@*<blockquote class="layui-elem-quote main_btn">
        <p>本CMS系统基于ASP.NET Core2.2+AutoFac+AutoMap+ FluentValidation +Dapper+LayUI+Redis+SqlServer实现，并采用Layui以及LayuiCMS2.0的后台模板实现。layui开发文档地址：<a class="layui-btn layui-btn-xs layui-btn-danger" target="_blank" href="http://www.layui.com/doc">layui文档</a>　.NET Core实战项目交流千人群：<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=e348b892a6e24b96c0f50f9fb26941af414b496665cf1b9d8d509155814b7a7b"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt=".NET Core项目实战交流群" title=".NET Core项目实战交流群"></a>（添加时请注明来源，如：“博客园”、“github”等）</p>
        <p class="layui-red">郑重提示：本CMS系统仅作为ASP.NET Core实战项目学习交流免费使用【强烈要求付费或者捐赠的我也就默默的接受了😄】，如需用作商业用途，也是可以滴，但出现任何问题，与作者无关！【另不管以何种形式获取的源码，请勿进行出售或者上传到任何源码网站，否则将追究相应的责任】</p>
        <p>注：本后台模版采用的是开源的LayuiCMS2.0，<a class="layui-btn layui-btn-xs layui-btn-danger" target="_blank" href="https://gitee.com/layuicms/layuicms2.0">码云</a>，未引入任何第三方组件，单纯的layui+js实现的各种功能。。</p>
    </blockquote>*@

<div id="agentPanel" class="layui-row layui-col-space10" style="display:none;">
    <div class="layui-col-lg8 layui-col-md12">
        <blockquote class="layui-elem-quote title">数据统计(仅供参考)</blockquote>
        <div class="layui-elem-quote layui-quote-nm history_box magb0">
            <div id="myChart" style="width:90%;height:400px;">
                <h3 class="layui-inline">暂无数据</h3>
            </div>
        </div>
    </div>
    <div class="layui-col-lg4 layui-col-md12">
        <blockquote class="layui-elem-quote title">条件筛选(仅供参考)</blockquote>
        <form class="layui-form">
            <table class="layui-table magt0">
                <colgroup>
                    <col width="150">
                    <col>
                </colgroup>
                <tbody>
                    @if (TempData["RoleId"]?.ToString() == "3")
                    {
                        <tr>
                            <td>营业部成本：</td>
                            <td id="searchCostCoin">0元</td>
                        </tr>
                    }
                    <tr>
                        <td>总交易数：</td>
                        <td id="searchTotal">0手</td>
                    </tr>
                    <tr>
                        <td>总返佣额：</td>
                        <td id="searchRebateTotal">0.00元</td>
                    </tr>
                    <tr>
                        <td>自己返佣：</td>
                        <td id="searchRebateSelfTotal">0元</td>
                    </tr>
                    <tr>
                        <td>代理返佣：</td>
                        <td id="searchRebateAgentTotal">0元</td>
                    </tr>


                    <tr>
                        <td>活跃直客：</td>
                        <td id="searchTerminalNum">0人</td>
                    </tr>
                    <tr>
                        <td>下级代理：</td>
                        <td>
                            <select name="searchAgent" class="searchAgent" lay-filter="searchAgent" lay-verify="required">
                                @if (AgentManagers != null)
                                {
                                    foreach (var item in AgentManagers)
                                    {
                                        <option value="@item.ItemCode">@(item.ItemData):@(item.ItemName)</option>
                                    }
                                }
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>开始时间：</td>
                        <td>
                            <input type="text" class="layui-input searchStart" id="searchStart" name="searchStart" readonly>
                        </td>
                    </tr>
                    <tr>
                        <td>结束时间：</td>
                        <td>
                            <input type="text" class="layui-input searchEnd" id="searchEnd" name="searchEnd" readonly>
                        </td>
                    </tr>
                    <tr>
                        <td>查询方式</td>
                        <td >
                            <div class="layui-input-inline ml-4">
                                <input type="radio" name="searchDateType" value="1" title="按结算日">
                                <input type="radio" name="searchDateType" value="0" title="按交易日" checked>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <button class="layui-btn layui-btn-fluid search_btn" data-type="search" type="button">数据查询</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>
    <div class="layui-col-lg4 layui-col-md12">
        <blockquote class="layui-elem-quote title">代理交易详细(仅供参考)</blockquote>
        <div class="layui-elem-quote layui-quote-nm list_box magb0">
            <ul>
                <li>
                    <h3 class="layui-inline">暂无数据</h3>
                    @*<span class="layui-badge-rim">2019-01-04</span>*@
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-col-lg4 layui-col-md12">
        <blockquote class="layui-elem-quote title">名下返佣详细(仅供参考)</blockquote>
        <div class="layui-elem-quote layui-quote-nm list_box magb0">
            <ul id="searchRebates"><li><h3 class="layui-inline">暂无数据</h3></li></ul>
            @*<ul>
                <li>
                    <h3 class="layui-inline">白冰的直客QS800308交易了1手CN </h3>
                    <span class="layui-badge-rim">2019-01-04</span>
                </li>
                <li>
                    <h3 class="layui-inline">白冰的直客QS800308交易了1手CN </h3>
                    <span class="layui-badge-rim">2019-01-04</span>
                </li>
            </ul>*@
        </div>
    </div>
    <div class="layui-col-lg4 layui-col-md12">
        <blockquote class="layui-elem-quote title">活跃直客(仅供参考)</blockquote>
        <div class="layui-elem-quote layui-quote-nm list_box magb0">
            <ul id="searchTerminal"><li><h3 class="layui-inline">暂无数据</h3></li></ul>
            @*<ul>
            <li>
                <h3 class="layui-inline">白冰>>>QS800308>>>刘世润</h3>
            </li>
            <li>
                <h3 class="layui-inline">白冰>>>QS800308>>>刘世润</h3>
            </li>
        </ul>*@
        </div>
    </div>
</div>
@section Scripts{
    <script type="text/javascript" src="~/lib/echarts/echarts.common.min.js"></script>
    <script type="text/javascript" src="~/layui/layui.js"></script>
    <script type="text/javascript" src="~/js/main.js?_=@DateTime.Now.ToString("yyyyMMddHHmmss")"></script>
}
